xen-tmem-list-parse: fix ugly parse output
authorDan Magenheimer <dan.magenheimer@oracle.com>
Wed, 14 Nov 2012 10:24:28 +0000 (10:24 +0000)
committerDan Magenheimer <dan.magenheimer@oracle.com>
Wed, 14 Nov 2012 10:24:28 +0000 (10:24 +0000)
commitb46c24edb7b8acba387b8621f867b7d4c5fce1b3
tree149ad821a0b8d65f2c246571467c1631ff75eba0
parente3f4dd42f626e6bf8b684eb3d157f66b60751eb4
xen-tmem-list-parse: fix ugly parse output

The program xen-tmem-list-parse parses the output of xm/xl tmem-list
into human-readable format.  A missing NULL terminator sometimes
causes garbage to be spewed where the two-letter pool type
should be output.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/misc/xen-tmem-list-parse.c